package com.stormrage.entity.edu;

import java.io.Serializable;

/**
 * @Title: EduVideo.java
 * @Package com.stormrage.entity
 * @Description: TODO(用一句话描述该文件做什么)
 * @author www.stormragetech.com
 * @date 2016年4月8日
 * @version V1.0
 */
public class EduVideo implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 293317651479016443L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private String video;

	private String thumb;

	private String url;

	private Integer videoLen;

	// ------------------------------- Fields -------------------------------

	public EduVideo() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getVideo() {
		return video;
	}

	public void setVideo(String video) {
		this.video = video;
	}

	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getVideoLen() {
		return videoLen;
	}

	public void setVideoLen(Integer videoLen) {
		this.videoLen = videoLen;
	}

	// ------------------------------- Fields -------------------------------

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " video - " + video + " thumb - " + thumb + " url - " + url
				+ " videoLen - " + videoLen;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		EduVideo entity = (EduVideo) o;

		if (id != null ? !id.equals(entity.id) : entity.id != null)
			return false;

		return true;
	}

	@Override
	public int hashCode() {
		return id != null ? id.hashCode() : 0;
	}

}
